package com.kx.springmybatis;

import com.kx.springmybatis.event.GGAQEvent;
import com.kx.springmybatis.event.WSEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

/**
 * 消防部分响应事件
 * @ClassName XFService
 * @Author Sun
 * @Date 2021/5/18 21:49
 */
@Service
public class XFService {

    @EventListener
    public void onEvent(GGAQEvent event) {
        System.err.println(event);
    }


    @EventListener
    public void onEvent(WSEvent event) {
        System.err.println("消防部门收到了一个事件" + event);
    }
}
